package com.fy.sys.service.impl;

import com.fy.core.vo.ApiRest;
import com.fy.sys.entity.Menu;
import com.fy.sys.mapper.MenuMapper;
import com.fy.sys.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author hxd
 * @since 2023-06-14
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public ApiRest findMenuTree() {
        List<Menu> menuList = this.baseMapper.findMenu();
        return ApiRest.success(menuList);
    }
}
